﻿namespace HuaWei.CBR.QTJL
{
    using DevExpress.Utils;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using HuaWei.CommClass;
    using HuaWei.CommComp;
    using HuaWei.Common;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FrmDYYFK_BZGS : FrmBase
    {
        private BindingSource bindingSource;
        private SimpleButton btnSP;
        private DateEdit detSPRQ;
        private TextEdit edtBQSQDYYFK;
        private TextEdit edtSPR;
        private MemoEdit edtSPYJ;
        private GroupControl groupControl1;
        private GroupControl groupControl2;
        private GroupControl groupControl3;
        private IContainer icontainer1 = null;
        private LabelControl labelControl1;
        private LabelControl labelControl19;
        private LabelControl labelControl2;
        private LabelControl labelControl20;
        private LabelControl labelControl21;
        private LabelControl labelControl23;
        private LabelControl labelControl24;
        private LabelControl labelControl25;
        private LabelControl labelControl26;
        private LabelControl labelControl27;
        private LabelControl labelControl3;
        private LabelControl labelControl4;
        private LabelControl labelControl5;
        private LabelControl labelControl6;
        private LabelControl labelControl7;
        private LabelControl lblBL1;
        private LabelControl lblBL2;
        private LabelControl lblBL3;
        private MemoEdit memoEdit6;
        private PanelControl panelControl1;
        private PanelControl panelControl13;
        private PanelControl panelControl14;
        private SimpleButton simpleButton1;
        private SimpleButton simpleButton2;
        private TextEdit textEdit;
        private TextEdit textEdit1;
        private TextEdit textEdit2;
        private TextEdit textEdit3;
        private TextEdit textEdit4;
        private TextEdit textEdit5;
        private TextEdit textEdit6;
        private TextEdit textEdit7;
        private TextEdit textEdit8;
        private TextEdit textEdit9;
        private PanelControl vroAaJyIa;

        public FrmDYYFK_BZGS()
        {
            this.InitializeComponent();
            this.btnSP.Visible = !GParams._JGLX.Equals(JGLX.CBR);
        }

        private void btnSP_Click(object sender, EventArgs e)
        {
            FrmSPYJ mspyj = new FrmSPYJ();
            mspyj.SetFrmParam(this.bindingSource);
            mspyj.ShowDialog();
        }

        public override bool Check()
        {
            return !this.edtBQSQDYYFK.Text.Trim().Equals("");
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.icontainer1 != null))
            {
                this.icontainer1.Dispose();
            }
            base.Dispose(disposing);
        }

        private void FrmDYYFK_BZGS_FormClosing(object sender, FormClosingEventArgs e)
        {
        }

        private void FrmDYYFK_BZGS_Load(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void InitializeComponent()
        {
            this.icontainer1 = new Container();
            this.panelControl14 = new PanelControl();
            this.groupControl2 = new GroupControl();
            this.memoEdit6 = new MemoEdit();
            this.bindingSource = new BindingSource(this.icontainer1);
            this.panelControl1 = new PanelControl();
            this.lblBL3 = new LabelControl();
            this.lblBL2 = new LabelControl();
            this.edtBQSQDYYFK = new TextEdit();
            this.labelControl23 = new LabelControl();
            this.textEdit9 = new TextEdit();
            this.labelControl20 = new LabelControl();
            this.labelControl19 = new LabelControl();
            this.groupControl3 = new GroupControl();
            this.labelControl4 = new LabelControl();
            this.edtSPYJ = new MemoEdit();
            this.edtSPR = new TextEdit();
            this.labelControl5 = new LabelControl();
            this.detSPRQ = new DateEdit();
            this.labelControl6 = new LabelControl();
            this.vroAaJyIa = new PanelControl();
            this.simpleButton1 = new SimpleButton();
            this.simpleButton2 = new SimpleButton();
            this.btnSP = new SimpleButton();
            this.groupControl1 = new GroupControl();
            this.textEdit = new TextEdit();
            this.textEdit7 = new TextEdit();
            this.textEdit6 = new TextEdit();
            this.textEdit5 = new TextEdit();
            this.textEdit4 = new TextEdit();
            this.labelControl3 = new LabelControl();
            this.labelControl2 = new LabelControl();
            this.labelControl1 = new LabelControl();
            this.labelControl27 = new LabelControl();
            this.labelControl21 = new LabelControl();
            this.textEdit8 = new TextEdit();
            this.panelControl13 = new PanelControl();
            this.lblBL1 = new LabelControl();
            this.labelControl7 = new LabelControl();
            this.textEdit3 = new TextEdit();
            this.textEdit2 = new TextEdit();
            this.textEdit1 = new TextEdit();
            this.labelControl26 = new LabelControl();
            this.labelControl25 = new LabelControl();
            this.labelControl24 = new LabelControl();
            base.ds.BeginInit();
            base.dsQuery.BeginInit();
            base.dataSets.BeginInit();
            this.panelControl14.BeginInit();
            this.panelControl14.SuspendLayout();
            this.groupControl2.BeginInit();
            this.groupControl2.SuspendLayout();
            this.memoEdit6.Properties.BeginInit();
            ((ISupportInitialize) this.bindingSource).BeginInit();
            this.panelControl1.BeginInit();
            this.panelControl1.SuspendLayout();
            this.edtBQSQDYYFK.Properties.BeginInit();
            this.textEdit9.Properties.BeginInit();
            this.groupControl3.BeginInit();
            this.groupControl3.SuspendLayout();
            this.edtSPYJ.Properties.BeginInit();
            this.edtSPR.Properties.BeginInit();
            this.detSPRQ.Properties.VistaTimeProperties.BeginInit();
            this.detSPRQ.Properties.BeginInit();
            this.vroAaJyIa.BeginInit();
            this.vroAaJyIa.SuspendLayout();
            this.groupControl1.BeginInit();
            this.groupControl1.SuspendLayout();
            this.textEdit.Properties.BeginInit();
            this.textEdit7.Properties.BeginInit();
            this.textEdit6.Properties.BeginInit();
            this.textEdit5.Properties.BeginInit();
            this.textEdit4.Properties.BeginInit();
            this.textEdit8.Properties.BeginInit();
            this.panelControl13.BeginInit();
            this.panelControl13.SuspendLayout();
            this.textEdit3.Properties.BeginInit();
            this.textEdit2.Properties.BeginInit();
            this.textEdit1.Properties.BeginInit();
            base.SuspendLayout();
            this.panelControl14.Controls.Add(this.groupControl2);
            this.panelControl14.Controls.Add(this.panelControl1);
            this.panelControl14.Controls.Add(this.groupControl3);
            this.panelControl14.Dock = DockStyle.Fill;
            this.panelControl14.Location = new Point(0, 0xc1);
            this.panelControl14.Name = "panelControl14";
            this.panelControl14.Size = new Size(880, 0x121);
            this.panelControl14.TabIndex = 0x24;
            this.groupControl2.Controls.Add(this.memoEdit6);
            this.groupControl2.Dock = DockStyle.Fill;
            this.groupControl2.Location = new Point(2, 0x4d);
            this.groupControl2.Name = "groupControl2";
            this.groupControl2.Size = new Size(0x36c, 0x49);
            this.groupControl2.TabIndex = 0x20;
            this.groupControl2.Text = "申请依据";
            this.memoEdit6.DataBindings.Add(new Binding("EditValue", this.bindingSource, "SQYJ", true));
            this.memoEdit6.Dock = DockStyle.Fill;
            this.memoEdit6.Location = new Point(2, 0x17);
            this.memoEdit6.Name = "memoEdit6";
            this.memoEdit6.Size = new Size(0x368, 0x30);
            this.memoEdit6.TabIndex = 0x17;
            this.bindingSource.DataMember = "QTJL_DYYFK";
            this.bindingSource.DataSource = base.dataSets;
            this.panelControl1.Controls.Add(this.lblBL3);
            this.panelControl1.Controls.Add(this.lblBL2);
            this.panelControl1.Controls.Add(this.edtBQSQDYYFK);
            this.panelControl1.Controls.Add(this.labelControl23);
            this.panelControl1.Controls.Add(this.textEdit9);
            this.panelControl1.Controls.Add(this.labelControl20);
            this.panelControl1.Controls.Add(this.labelControl19);
            this.panelControl1.Dock = DockStyle.Top;
            this.panelControl1.Location = new Point(2, 2);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new Size(0x36c, 0x4b);
            this.panelControl1.TabIndex = 0x21;
            this.lblBL3.Location = new Point(0x113, 0x2c);
            this.lblBL3.Name = "lblBL3";
            this.lblBL3.Size = new Size(140, 14);
            this.lblBL3.TabIndex = 0x1c;
            this.lblBL3.Text = "占动员预付款总额（  %）";
            this.lblBL2.Location = new Point(0x113, 11);
            this.lblBL2.Name = "lblBL2";
            this.lblBL2.Size = new Size(140, 14);
            this.lblBL2.TabIndex = 0x1b;
            this.lblBL2.Text = "占动员预付款总额（  %）";
            this.edtBQSQDYYFK.DataBindings.Add(new Binding("EditValue", this.bindingSource, "BQSQDYYFK", true));
            this.edtBQSQDYYFK.Location = new Point(0xa9, 8);
            this.edtBQSQDYYFK.Name = "edtBQSQDYYFK";
            this.edtBQSQDYYFK.Properties.DisplayFormat.FormatString = "0";
            this.edtBQSQDYYFK.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            this.edtBQSQDYYFK.Properties.EditFormat.FormatString = "0";
            this.edtBQSQDYYFK.Properties.EditFormat.FormatType = FormatType.Numeric;
            this.edtBQSQDYYFK.Size = new Size(100, 0x15);
            this.edtBQSQDYYFK.TabIndex = 0x12;
            this.labelControl23.Location = new Point(0xfe, 11);
            this.labelControl23.Name = "labelControl23";
            this.labelControl23.Size = new Size(0, 14);
            this.labelControl23.TabIndex = 0x1a;
            this.textEdit9.DataBindings.Add(new Binding("EditValue", this.bindingSource, "BQMZFDYYFK", true));
            this.textEdit9.Enabled = false;
            this.textEdit9.Location = new Point(0xa9, 0x29);
            this.textEdit9.Name = "textEdit9";
            this.textEdit9.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit9.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit9.Size = new Size(100, 0x15);
            this.textEdit9.TabIndex = 20;
            this.labelControl20.Location = new Point(12, 11);
            this.labelControl20.Name = "labelControl20";
            this.labelControl20.Size = new Size(130, 14);
            this.labelControl20.TabIndex = 0x11;
            this.labelControl20.Text = "本期申请动员预付款(元)";
            this.labelControl19.Location = new Point(10, 0x2c);
            this.labelControl19.Name = "labelControl19";
            this.labelControl19.Size = new Size(0x9a, 14);
            this.labelControl19.TabIndex = 0x13;
            this.labelControl19.Text = "本期末支付动员预付款款(元)";
            this.groupControl3.Controls.Add(this.labelControl4);
            this.groupControl3.Controls.Add(this.edtSPYJ);
            this.groupControl3.Controls.Add(this.edtSPR);
            this.groupControl3.Controls.Add(this.labelControl5);
            this.groupControl3.Controls.Add(this.detSPRQ);
            this.groupControl3.Controls.Add(this.labelControl6);
            this.groupControl3.Dock = DockStyle.Bottom;
            this.groupControl3.Location = new Point(2, 150);
            this.groupControl3.Name = "groupControl3";
            this.groupControl3.Size = new Size(0x36c, 0x89);
            this.groupControl3.TabIndex = 0x22;
            this.groupControl3.Tag = "-3";
            this.groupControl3.Text = "审批意见";
            this.labelControl4.Location = new Point(14, 0x3d);
            this.labelControl4.Name = "labelControl4";
            this.labelControl4.Size = new Size(0x30, 14);
            this.labelControl4.TabIndex = 0x11;
            this.labelControl4.Text = "审批意见";
            this.edtSPYJ.DataBindings.Add(new Binding("EditValue", this.bindingSource, "SHYJ", true));
            this.edtSPYJ.Location = new Point(0x47, 0x3b);
            this.edtSPYJ.Name = "edtSPYJ";
            this.edtSPYJ.Properties.ReadOnly = true;
            this.edtSPYJ.Size = new Size(0x1e4, 0x48);
            this.edtSPYJ.TabIndex = 0x10;
            this.edtSPYJ.Tag = "";
            this.edtSPR.DataBindings.Add(new Binding("EditValue", this.bindingSource, "SHR", true));
            this.edtSPR.Location = new Point(0xe1, 0x20);
            this.edtSPR.Name = "edtSPR";
            this.edtSPR.Properties.ReadOnly = true;
            this.edtSPR.Size = new Size(100, 0x15);
            this.edtSPR.TabIndex = 15;
            this.edtSPR.Tag = "";
            this.labelControl5.Location = new Point(180, 0x23);
            this.labelControl5.Name = "labelControl5";
            this.labelControl5.Size = new Size(0x24, 14);
            this.labelControl5.TabIndex = 14;
            this.labelControl5.Text = "审批人";
            this.detSPRQ.DataBindings.Add(new Binding("EditValue", this.bindingSource, "SHRQ", true));
            this.detSPRQ.EditValue = null;
            this.detSPRQ.Location = new Point(0x47, 0x20);
            this.detSPRQ.Name = "detSPRQ";
            this.detSPRQ.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.detSPRQ.Properties.ReadOnly = true;
            this.detSPRQ.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.detSPRQ.Size = new Size(100, 0x15);
            this.detSPRQ.TabIndex = 13;
            this.detSPRQ.Tag = "";
            this.labelControl6.Location = new Point(14, 0x23);
            this.labelControl6.Name = "labelControl6";
            this.labelControl6.Size = new Size(0x30, 14);
            this.labelControl6.TabIndex = 12;
            this.labelControl6.Text = "审批日期";
            this.vroAaJyIa.Controls.Add(this.simpleButton1);
            this.vroAaJyIa.Controls.Add(this.simpleButton2);
            this.vroAaJyIa.Controls.Add(this.btnSP);
            this.vroAaJyIa.Dock = DockStyle.Top;
            this.vroAaJyIa.Location = new Point(0, 0xa6);
            this.vroAaJyIa.Name = "panelControl12";
            this.vroAaJyIa.Size = new Size(880, 0x1b);
            this.vroAaJyIa.TabIndex = 0x21;
            this.simpleButton1.Dock = DockStyle.Left;
            this.simpleButton1.Location = new Point(110, 2);
            this.simpleButton1.Name = "simpleButton1";
            this.simpleButton1.Size = new Size(0x3a, 0x17);
            this.simpleButton1.TabIndex = 10;
            this.simpleButton1.Tag = "-2";
            this.simpleButton1.Text = "刷新";
            this.simpleButton1.Click += new EventHandler(this.simpleButton1_Click);
            this.simpleButton2.Dock = DockStyle.Left;
            this.simpleButton2.Location = new Point(0x34, 2);
            this.simpleButton2.Name = "simpleButton2";
            this.simpleButton2.Size = new Size(0x3a, 0x17);
            this.simpleButton2.TabIndex = 9;
            this.simpleButton2.Tag = "-2";
            this.simpleButton2.Text = "过程数据";
            this.simpleButton2.Click += new EventHandler(this.simpleButton2_Click);
            this.btnSP.Dock = DockStyle.Left;
            this.btnSP.Location = new Point(2, 2);
            this.btnSP.Name = "btnSP";
            this.btnSP.Size = new Size(50, 0x17);
            this.btnSP.TabIndex = 5;
            this.btnSP.Tag = "-1";
            this.btnSP.Text = "审批";
            this.btnSP.Click += new EventHandler(this.btnSP_Click);
            this.groupControl1.Controls.Add(this.textEdit);
            this.groupControl1.Controls.Add(this.textEdit7);
            this.groupControl1.Controls.Add(this.textEdit6);
            this.groupControl1.Controls.Add(this.textEdit5);
            this.groupControl1.Controls.Add(this.textEdit4);
            this.groupControl1.Controls.Add(this.labelControl3);
            this.groupControl1.Controls.Add(this.labelControl2);
            this.groupControl1.Controls.Add(this.labelControl1);
            this.groupControl1.Controls.Add(this.labelControl27);
            this.groupControl1.Controls.Add(this.labelControl21);
            this.groupControl1.Dock = DockStyle.Top;
            this.groupControl1.Location = new Point(0, 0x47);
            this.groupControl1.Name = "groupControl1";
            this.groupControl1.Size = new Size(880, 0x5f);
            this.groupControl1.TabIndex = 0x22;
            this.groupControl1.Text = "本期扣回动员预付款";
            this.textEdit.DataBindings.Add(new Binding("EditValue", this.bindingSource, "BQKCDYYFK", true));
            this.textEdit.Location = new Point(0x22b, 0x3a);
            this.textEdit.Name = "textEdit10";
            this.textEdit.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit.Size = new Size(100, 0x15);
            this.textEdit.TabIndex = 10;
            this.textEdit7.DataBindings.Add(new Binding("EditValue", this.bindingSource, "SQMWC", true));
            this.textEdit7.Location = new Point(0x158, 0x3a);
            this.textEdit7.Name = "textEdit7";
            this.textEdit7.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit7.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit7.Size = new Size(100, 0x15);
            this.textEdit7.TabIndex = 9;
            this.textEdit6.DataBindings.Add(new Binding("EditValue", this.bindingSource, "BQMWC", true));
            this.textEdit6.Location = new Point(0x6d, 0x3a);
            this.textEdit6.Name = "textEdit6";
            this.textEdit6.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit6.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit6.Size = new Size(100, 0x15);
            this.textEdit6.TabIndex = 8;
            this.textEdit5.DataBindings.Add(new Binding("EditValue", this.bindingSource, "BQKCDYYFK", true));
            this.textEdit5.Location = new Point(0x22b, 0x1d);
            this.textEdit5.Name = "textEdit5";
            this.textEdit5.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit5.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit5.Size = new Size(100, 0x15);
            this.textEdit5.TabIndex = 7;
            this.textEdit4.DataBindings.Add(new Binding("EditValue", this.bindingSource, "QKE", true));
            this.textEdit4.Location = new Point(0x101, 0x1d);
            this.textEdit4.Name = "textEdit4";
            this.textEdit4.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit4.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit4.Size = new Size(100, 0x15);
            this.textEdit4.TabIndex = 6;
            this.labelControl3.Location = new Point(0x183, 0x20);
            this.labelControl3.Name = "labelControl3";
            this.labelControl3.Size = new Size(0xa2, 14);
            this.labelControl3.TabIndex = 4;
            this.labelControl3.Text = "G：本期扣除动员预付款(元)：";
            this.labelControl2.Location = new Point(0x1d3, 0x3d);
            this.labelControl2.Name = "labelControl2";
            this.labelControl2.Size = new Size(0x52, 14);
            this.labelControl2.TabIndex = 3;
            this.labelControl2.Text = "本期完成(元)：";
            this.labelControl1.Location = new Point(0xf1, 0x3d);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new Size(0x6a, 14);
            this.labelControl1.TabIndex = 2;
            this.labelControl1.Text = "到上期末完成(元)：";
            this.labelControl27.Location = new Point(9, 0x3d);
            this.labelControl27.Name = "labelControl27";
            this.labelControl27.Size = new Size(0x5e, 14);
            this.labelControl27.TabIndex = 1;
            this.labelControl27.Text = "本期末完成(元)：";
            this.labelControl21.Location = new Point(9, 0x20);
            this.labelControl21.Name = "labelControl21";
            this.labelControl21.Size = new Size(0xf2, 14);
            this.labelControl21.TabIndex = 0;
            this.labelControl21.Text = "B：起扣额(合同总价－暂定金额)\x00d730%(元)：";
            this.textEdit8.DataBindings.Add(new Binding("EditValue", this.bindingSource, "BQWC", true));
            this.textEdit8.Location = new Point(0x182, 0x2b);
            this.textEdit8.Name = "textEdit8";
            this.textEdit8.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit8.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit8.Size = new Size(0x8a, 0x15);
            this.textEdit8.TabIndex = 10;
            this.panelControl13.Controls.Add(this.lblBL1);
            this.panelControl13.Controls.Add(this.textEdit8);
            this.panelControl13.Controls.Add(this.labelControl7);
            this.panelControl13.Controls.Add(this.textEdit3);
            this.panelControl13.Controls.Add(this.textEdit2);
            this.panelControl13.Controls.Add(this.textEdit1);
            this.panelControl13.Controls.Add(this.labelControl26);
            this.panelControl13.Controls.Add(this.labelControl25);
            this.panelControl13.Controls.Add(this.labelControl24);
            this.panelControl13.Dock = DockStyle.Top;
            this.panelControl13.Location = new Point(0, 0);
            this.panelControl13.Name = "panelControl13";
            this.panelControl13.Size = new Size(880, 0x47);
            this.panelControl13.TabIndex = 0x23;
            this.lblBL1.Location = new Point(0x2d6, 0x13);
            this.lblBL1.Name = "lblBL1";
            this.lblBL1.Size = new Size(140, 14);
            this.lblBL1.TabIndex = 0x1d;
            this.lblBL1.Text = "占动员预付款总额（  %）";
            this.labelControl7.Location = new Point(0x17, 0x2e);
            this.labelControl7.Name = "labelControl7";
            this.labelControl7.Size = new Size(0x16b, 14);
            this.labelControl7.TabIndex = 6;
            this.labelControl7.Text = "C：到本期末累计完成总额[不含已付动员预付款和材料预付款](元)：";
            this.textEdit3.DataBindings.Add(new Binding("EditValue", this.bindingSource, "YFDYYFK", true));
            this.textEdit3.Location = new Point(0x278, 0x10);
            this.textEdit3.Name = "textEdit3";
            this.textEdit3.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit3.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit3.Size = new Size(0x58, 0x15);
            this.textEdit3.TabIndex = 5;
            this.textEdit2.DataBindings.Add(new Binding("EditValue", this.bindingSource, "DYYFKZE", true));
            this.textEdit2.Location = new Point(0x182, 0x10);
            this.textEdit2.Name = "textEdit2";
            this.textEdit2.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit2.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit2.Size = new Size(100, 0x15);
            this.textEdit2.TabIndex = 4;
            this.textEdit1.DataBindings.Add(new Binding("EditValue", this.bindingSource, "HTZJ", true));
            this.textEdit1.Location = new Point(0x80, 0x10);
            this.textEdit1.Name = "textEdit1";
            this.textEdit1.Properties.Appearance.BackColor = Color.WhiteSmoke;
            this.textEdit1.Properties.Appearance.Options.UseBackColor = true;
            this.textEdit1.Size = new Size(100, 0x15);
            this.textEdit1.TabIndex = 3;
            this.labelControl26.Location = new Point(0x1ee, 0x13);
            this.labelControl26.Name = "labelControl26";
            this.labelControl26.Size = new Size(0x88, 14);
            this.labelControl26.TabIndex = 2;
            this.labelControl26.Text = "F：已付动员预付款(元)：";
            this.labelControl25.Location = new Point(0x10c, 0x13);
            this.labelControl25.Name = "labelControl25";
            this.labelControl25.Size = new Size(0x76, 14);
            this.labelControl25.TabIndex = 1;
            this.labelControl25.Text = "动员预付款总额(元)：";
            this.labelControl24.Location = new Point(0x17, 0x13);
            this.labelControl24.Name = "labelControl24";
            this.labelControl24.Size = new Size(0x66, 14);
            this.labelControl24.TabIndex = 0;
            this.labelControl24.Text = "A：合同总价(元)：";
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new Size(880, 0x1e2);
            base.Controls.Add(this.panelControl14);
            base.Controls.Add(this.vroAaJyIa);
            base.Controls.Add(this.groupControl1);
            base.Controls.Add(this.panelControl13);
            base.Name = "FrmDYYFK_BZGS";
            this.Text = "动员预付款_标准公式";
            base.FormClosing += new FormClosingEventHandler(this.FrmDYYFK_BZGS_FormClosing);
            base.Load += new EventHandler(this.FrmDYYFK_BZGS_Load);
            base.ds.EndInit();
            base.dsQuery.EndInit();
            base.dataSets.EndInit();
            this.panelControl14.EndInit();
            this.panelControl14.ResumeLayout(false);
            this.groupControl2.EndInit();
            this.groupControl2.ResumeLayout(false);
            this.memoEdit6.Properties.EndInit();
            ((ISupportInitialize) this.bindingSource).EndInit();
            this.panelControl1.EndInit();
            this.panelControl1.ResumeLayout(false);
            this.panelControl1.PerformLayout();
            this.edtBQSQDYYFK.Properties.EndInit();
            this.textEdit9.Properties.EndInit();
            this.groupControl3.EndInit();
            this.groupControl3.ResumeLayout(false);
            this.groupControl3.PerformLayout();
            this.edtSPYJ.Properties.EndInit();
            this.edtSPR.Properties.EndInit();
            this.detSPRQ.Properties.VistaTimeProperties.EndInit();
            this.detSPRQ.Properties.EndInit();
            this.vroAaJyIa.EndInit();
            this.vroAaJyIa.ResumeLayout(false);
            this.groupControl1.EndInit();
            this.groupControl1.ResumeLayout(false);
            this.groupControl1.PerformLayout();
            this.textEdit.Properties.EndInit();
            this.textEdit7.Properties.EndInit();
            this.textEdit6.Properties.EndInit();
            this.textEdit5.Properties.EndInit();
            this.textEdit4.Properties.EndInit();
            this.textEdit8.Properties.EndInit();
            this.panelControl13.EndInit();
            this.panelControl13.ResumeLayout(false);
            this.panelControl13.PerformLayout();
            this.textEdit3.Properties.EndInit();
            this.textEdit2.Properties.EndInit();
            this.textEdit1.Properties.EndInit();
            base.ResumeLayout(false);
        }

        public override void LoadedForm()
        {
            base.SetBindingSource(this.bindingSource, "QTJL_DYYFK", true);
            base.ds.Tables["QTJL_DYYFK"].ColumnChanged += new DataColumnChangeEventHandler(this.method3);
            base.LoadedForm();
        }

        public override void LoadingData()
        {
            base.LoadingData();
            base.ds.Clear();
            string str = null;
            str = "select * from QTJL_DYYFK " + Class28.YfQclfhSo(GParams.QCInfo.QCID, "");
            Class39.smethod4(base.ida, base.ds, str, "QTJL_DYYFK", true);
            DataTable table1 = base.ds.Tables["QTJL_DYYFK"];
            this.method2();
        }

        private void lquywmUul(object sender, EventArgs e)
        {
            base.Save();
        }

        private void method1()
        {
            DataRow row = base.ds.Tables["QTJL_DYYFK"].Rows[0];
            decimal num = CHelp.ConvertDecimal(row["DYYFKZE"], 0, 0);
            decimal num2 = 0M;
            decimal num3 = 0M;
            decimal num4 = 0M;
            if (num > 0M)
            {
                num2 = CHelp.ConvertDecimal((CHelp.ConvertDecimal(row["YFDYYFK"], 0, 0) / num) * 100M, 0, 2);
                num3 = CHelp.ConvertDecimal((CHelp.ConvertDecimal(row["BQSQDYYFK"], 0, 0) / num) * 100M, 0, 2);
                num4 = CHelp.ConvertDecimal((CHelp.ConvertDecimal(row["BQMZFDYYFK"], 0, 0) / num) * 100M, 0, 2);
            }
            this.lblBL1.Text = string.Format("占动员预付款总额（{0}%）", num2);
            this.lblBL2.Text = string.Format("占动员预付款总额（{0}%）", num3);
            this.lblBL3.Text = string.Format("占动员预付款总额（{0}%）", num4);
        }

        private void method2()
        {
            if (GParams.QCInfo.QCZT < 0)
            {
                DataRow row;
                DataTable table = base.ds.Tables["QTJL_DYYFK"];
                if (table.Rows.Count == 0)
                {
                    table.TableNewRow += new DataTableNewRowEventHandler(Class28.smethod);
                    row = table.NewRow();
                    row.EndEdit();
                    table.Rows.Add(row);
                }
                else
                {
                    row = table.Rows[0];
                }
                Class39.SetDYYFK(base.ida, row, GParams._BDID, GParams.QCInfo.QCID);
                this.method1();
            }
        }

        private void method3(object sender, DataColumnChangeEventArgs e)
        {
            if (e.Column.ColumnName.Equals("BQSQDYYFK"))
            {
                this.method2();
            }
        }

        private void method4(object sender, EventArgs e)
        {
            this.ControlFormStatus();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.method2();
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            string objId = DHelp.GetObjId(this.bindingSource);
            base.OpenDataLog("QTJL_DYYFK", GParams._BDID, GParams.QCInfo.QCID, objId);
        }
    }
}

